

import yaml
def getdata(filepath):
    with open(filepath, 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)

import yagmail
def send_mail(filepath):
    mail = yagmail.SMTP(user='3210993712@qq.com', password="liu200412", host="smtp.qq.com")
    mail.send(to='3210993712@qq.com',subject="电商系统后台测试报告",contents="请领导查看", attachments=filepath)